<?php
include 'serverInfo.php';
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>StrongMice</title>
        <script src="js/jquery-1.8.2.min.js"></script>
        <script src="js/flexigrid.js"></script>
        <link type="text/css" rel="stylesheet" href="css/flexigrid.css">
        <link type="text/css" rel="stylesheet" href="css/strongmice.css">
    </head>
    <body>
        <table border="0">
            <tr>
                <td align="left" valign="top">
                    <div class="leftpane">
                        <!-- Queries -->
                        <div class="queries">QUERIES
                            <div class="querypane">
                                <div class="host">$</div>
                                <div id="qpane0"></div>
                            </div>
                            <div class="querytoolbar">
                                <a href="#">新建文件夹</a> 
                                <a href="#">新建查询</a> 
                                <a href="#">修改</a> 
                                <a href="#">删除</a>
                            </div>
                        </div>
                        <!-- Schemas -->
                        <div class="schemas">SCHEMAS
                            <div class="host" onclick="getSchemas(this);"><?php echo ServerInfo::HOST?></div>
                            <div id="schemapane"></div>
<!--                            <div class="host" onclick="getSchemas(this);"><?php echo ServerInfo::HOST?></div>
                            <div id="schemapane"></div>-->
                        </div>
                        <!-- Tools -->
                        <div class="tools">TOOLS
                            <div class="toolslink">
                                <a href="#">监控数据变化</a><br>
                                <a href="#">同步数据结构</a><br>
                                <a href="#">数据结构差异</a><br>
                            </div>
                        </div>
                    </div>
                </td>
                <td align="left" valign="top">
                    <div class="rightpane">
                        <table id="tblDef"></table>
                    </div>                    
                </td>

        </table>

                    <!-- 扩展信息 -->
                    <div id="extDetail" style="border:1px solid blue;width:390px;height:350px;position:absolute;background-color:#a2b3c4;display: none;">
                        <form name="extForm" id="extForm" method="post" action="tblExtEdit.php">
                            <input name="field" type="hidden"/>
                            <input name="schema" type="hidden"/>
                            <input name="table" type="hidden"/>
                        <table>
                            <tr>
                                <td>别名:</td>
                                <td><input name="alias" type="text"/></td>
                            </tr>
                            <tr>
                                <td>描述:</td>
                                <td><textarea name="description" cols="45" rows="3"></textarea></td>
                            </tr>
                            <tr>
                                <td>字典:</td>
                                <td>
                                    <div style="width:340px;height:220px;">
                                       <input name="key0" type="text"/><input name="val0" type="text"/><br> 
                                       <input name="key1" type="text"/><input name="val1" type="text"/><br> 
                                       <input name="key2" type="text"/><input name="val2" type="text"/><br> 
                                       <input name="key3" type="text"/><input name="val3" type="text"/><br> 
                                       <input name="key4" type="text"/><input name="val4" type="text"/><br> 
                                       <input name="key5" type="text"/><input name="val5" type="text"/><br> 
                                       <input name="key6" type="text"/><input name="val6" type="text"/><br> 
                                       <input name="key7" type="text"/><input name="val7" type="text"/><br> 
                                       <input name="key8" type="text"/><input name="val8" type="text"/><br> 
                                       <input name="key9" type="text"/><input name="val9" type="text"/><br> 
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td align="right"><input id="submitBtn" type="submit" value="确定"/><input id="cancelBtn" type="button" value="取消"/></td>
                            </tr>
                        </table>
						</form>
                    </div>
                    
                    <!-- 新建文件夹 -->
                    <div id="newFolder">
                        <form name="newFolderForm" id="newFolderForm" method="post" action="tblExtEdit.php">
                            
                        </form>
                    </div>
        <script src="js/strongmice.js"></script>
        
    </body>
</html>
